package com.eastjet.maintenance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eastjet.maintenance.domain.DispositionDetails;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 杨博文
 * @description 针对表【disposition_details(处置明细)】的数据库操作Service
 * @createDate 2024-11-25 09:23:38
 */
public interface DispositionDetailsService extends IService<DispositionDetails> {

    /*
    新增设备处理明细
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean InsertDispositionDetails(List<DispositionDetails> dispositionDetails);

    /*
    更新设备处理明细
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean UpdateDispositionDetails(List<DispositionDetails> dispositionDetails);

    /*
    删除设备处理明细
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean DeleteDispositionDetails(List<DispositionDetails> dispositionDetails);

    /*
    根据处置单号查询处置明细
     */
    List<DispositionDetails> selectDispositionDetailsByDispositionId(String code);
}
